
export enum Status {
    UN_SUBMIT = 1, // 待提交
    APPROVED = 2, // 审批中
    SEND_BACK = 3, // 已退回
    VOIDED = 4, // 已作废
    FINISHED = 5 // 已完成
  }
// 审批状态
export const APPROVE_STATUS = {
    [Status.UN_SUBMIT]: {
      label: '待提交',
      color: 'processing'
    },
    [Status.APPROVED]: {
      label: '审批中',
      color: 'warning'
    },
    [Status.SEND_BACK]: {
      label: '已退回',
      color: 'error'
    },
    [Status.VOIDED]: {
      label: '已作废',
      color: 'default'
    },
    [Status.FINISHED]: {
      label: '已完成',
      color: 'success'
    }
}
export enum Status_Subscribe {
  APPROVED = 1, // 审批中
  REJECTED = 2, // 已拒绝
  CANCELED = 3, // 已取消
  FINISHED = 4 // 已完成
}
// 审批状态
export const APPROVE_SUBSCRIBE_STATUS = {
  [Status_Subscribe.APPROVED]: {
    label: '审批中',
    color: 'warning'
  },
  [Status_Subscribe.REJECTED]: {
    label: '已拒绝',
    color: 'error'
  },
  [Status_Subscribe.CANCELED]: {
    label: '已取消',
    color: 'default'
  },
  [Status_Subscribe.FINISHED]: {
    label: '已完成',
    color: 'success'
  }
}
// 整改状态
export enum rectificationStatus {
  TO_BE_REPLIED = 1, // 待回复
  TO_BE_REVIEWED = 2, // 待复核
  COMPLETED = 3 // 已完成
}
export const RECTIFICATION_STATUS = {
  [rectificationStatus.TO_BE_REPLIED]: {
    label: '待回复',
    color: 'processing'
  },
  [rectificationStatus.TO_BE_REVIEWED]: {
    label: '待复核',
    color: 'warning'
  },
  [rectificationStatus.COMPLETED]: {
    label: '已完成',
    color: 'success'
  }
}

export enum SEVERITY {
  // 轻微
  SLIGHT = 1,
  //一般
  COMMONLY = 2,
  // 严重
  SERIOUS = 3
}
export const SEVERITY_STATUS = {
  [SEVERITY.SLIGHT]: {
    label: '!轻微',
    color: 'success'
  },
  [SEVERITY.COMMONLY]: {
    label: '!!一般',
    color: 'warning'
  },
  [SEVERITY.SERIOUS]: {
    label: '!!!严重',
    color: 'error'
  }
}
export enum QualityStatus {
  UN_QUALITY = 1, // 待质控
  UNDER_RECTIFICATION = 2, // 整改中
  FINISHED = 3 // 已完成
}
export const QUALITY_STATUS = {
  [QualityStatus.UN_QUALITY]: {
    label: '待质控',
    color: 'processing'
  },
  [QualityStatus.UNDER_RECTIFICATION]: {
    label: '整改中',
    color: 'warning'
  },
  [QualityStatus.FINISHED]: {
    label: '已完成',
    color: 'success'
  }
}

export enum QualityApproveStatus {
  UN_SUBMIT = 1, // 待提交
  APPROVED = 2, // 审批中
  SEND_BACK = 3, // 已退回
  FINISHED = 4 // 已完成
}
// 审批状态
export const QUALITY_APPROVE_STATUS = {
  [QualityApproveStatus.UN_SUBMIT]: {
    label: '待提交',
    color: 'processing'
  },
  [QualityApproveStatus.APPROVED]: {
    label: '审批中',
    color: 'warning'
  },
  [QualityApproveStatus.SEND_BACK]: {
    label: '已退回',
    color: 'error'
  },
  [QualityApproveStatus.FINISHED]: {
    label: '已完成',
    color: 'success'
  }
}

